package com.tjetc.dao;

import com.tjetc.domain.Dclasses;
import com.tjetc.domain.DocNurClasses;
import com.tjetc.domain.DorClasses;
import com.tjetc.utils.PageInfo;

import java.sql.SQLException;
import java.util.List;

public interface DclassesDao {

    void addDoc(Dclasses dclasses) throws SQLException;

    int getDocCount(int did) throws SQLException;

    //查询所有排班信息,废了，该方法作废
    List<DocNurClasses> listClasses(String date) throws SQLException;

    List<DorClasses> listDorClasses(PageInfo<DorClasses> pageInfo) throws SQLException;

    int getCount() throws SQLException;

    Dclasses findByIdandDate(int id, String dayOfWeekName) throws SQLException;

    int setqiandao(Dclasses dclasses) throws SQLException;
    //清空排班表，准备迎接新的一周
    void clearClasses() throws SQLException;

}
